package exercise1;

/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214st2215
 * @Package: exercise1
 * @File: Mankind.java
 * @Time: 2023/3/14 14:09
 * @Author: abcque
 * @Description:
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class Mankind {
    private int sex;
    private int salary;

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    void manOrWoman (){
        if (sex == 1){
            System.out.println("man");
        }
        if (sex == 0){
            System.out.println("woman");
        }
    }
    void employeed (){
        if (salary == 0){
            System.out.println("no job");
        }
        if (salary != 0){
            System.out.println("job");
        }
    }
}
